package com.flyco.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 开发平台账户配置表
 * @Author: flyco
 * @Date:   2021-07-26
 * @Version: V1.0
 */
@Data
@TableName("sys_open_account")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_open_account对象", description="开发平台账户配置表")
public class SysOpenAccount {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**商家id*/
	@Excel(name = "商家id", width = 15)
    @ApiModelProperty(value = "商家id")
	private Long partnerId;
	/**业务code*/
	@Excel(name = "业务code", width = 15)
    @ApiModelProperty(value = "业务code")
	private String bizCode;
	/**第三方来源wechat,qq等*/
	@Excel(name = "第三方来源wechat,qq等", width = 15)
    @ApiModelProperty(value = "第三方来源wechat,qq等")
	private String source;
	/**账户*/
	@Excel(name = "账户", width = 15)
    @ApiModelProperty(value = "账户")
	private String clientKey;
	/**账户密码*/
	@Excel(name = "账户密码", width = 15)
    @ApiModelProperty(value = "账户密码")
	private String clientSecret;
	/**微信小程序消息服务器配置的token*/
	@Excel(name = "微信小程序消息服务器配置的token", width = 15)
    @ApiModelProperty(value = "微信小程序消息服务器配置的token")
	private String token;
	/**微信小程序消息服务器配置的EncodingAESKey*/
	@Excel(name = "微信小程序消息服务器配置的EncodingAESKey", width = 15)
    @ApiModelProperty(value = "微信小程序消息服务器配置的EncodingAESKey")
	private String aesKey;
	/**删除状态：0->未删除；1->已删除*/
	@Excel(name = "删除状态：0->未删除；1->已删除", width = 15)
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
	private Integer cancelFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
